package com.tbit.main.pojo;

import com.tbit.main.util.DateTimeUtil;
import lombok.Data;

import java.text.ParseException;

/**
 * @author LMY
 * @create 2021-01-08 15:46
 * 摆车
 */
@Data
public class MachineNeatLog {
    private Integer machineNeatLogId;   //摆车id
    private Integer accountId;    //运营区域id
    private Integer machineId;    //设备id
    private String userCode;    //车辆编码
    private String machineNO;    //设备编号
    private Integer accountUserId;    //运维人员id
    private String userName;    //运维人员姓名
    private String startTime;    //开始时间
    private Long startTimestamp;//开始时间戳
    private String endTime;    //结束时间
    private Long endTimestamp;  //结束时间戳
    private String beforeImageIds;    //操作前图片
    private String afterImageIds;    //操作后图片
    private Integer isValid;    //是否有效
    private String remark;    //备注
    private String imageIds;    //图片
    private Integer regionId;   //分区id

    public void setStartTimestamp(String startTime) throws ParseException {
        this.startTimestamp = DateTimeUtil.getTimestamp(startTime);
    }

    public void setEndTimestamp(String endTime) throws ParseException {
        this.endTimestamp = DateTimeUtil.getTimestamp(endTime);
    }
}
